package com.forlgb.powercloud.base.client.source.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisApiAutoConfig{

    @Bean
    public MapperScannerConfigurer getMapperScannerConfigurer(){ ;
        MapperScannerConfigurer configurer = new MapperScannerConfigurer();
        configurer.setBasePackage("com.forlgb.powercloud.base.client.source.mapper");
        configurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
        return configurer;
    }
}


